package com.itheima.jdk8date;

import java.time.LocalDateTime;

/*
with
 */
public class Demo07 {


    public static void main(String[] args) {
        LocalDateTime now = LocalDateTime.now();

        System.out.println(now.withYear(2011));
        //System.out.println(now);
        System.out.println(now.withMonth(12));
        System.out.println(now.withDayOfMonth(30));
        System.out.println(now.withDayOfYear(365));



    }
}
